package com.local.model;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.Table;
import javax.validation.constraints.NotNull;

import org.hibernate.validator.constraints.Length;
import org.hibernate.validator.constraints.NotEmpty;

@Entity
@Table(name = "local_version")
public class LocalVersion {
    @NotEmpty
    @Length(min=1,max=32)
    @Column(name = "version_uuid")
    private String versionUuid;

    @NotEmpty
    @Length(min=1,max=16)
    @Column(name = "version_type")
    private String versionType;

    @NotNull
    @Column(name = "version")
    private Double version;

    public String getVersionUuid() {
        return versionUuid;
    }

    public void setVersionUuid(String versionUuid) {
        this.versionUuid = versionUuid == null ? null : versionUuid.trim();
    }

    public String getVersionType() {
        return versionType;
    }

    public void setVersionType(String versionType) {
        this.versionType = versionType == null ? null : versionType.trim();
    }

    public Double getVersion() {
        return version;
    }

    public void setVersion(Double version) {
        this.version = version;
    }
}